package com.kate.mall.order.state;

import com.kate.mall.common.constants.OrderStatus;
import com.kate.mall.common.utils.DateProvider;
import com.kate.mall.order.dao.OrderDao;
import com.kate.mall.order.dto.OrderDTO;
import org.springframework.stereotype.Component;

/**
 * @author 新梦想.陈超
 * @version 2021.2
 * @Description: {TODO}
 * @date 2023/6/29 下午5:18
 */
@Component
public class InitOrderState extends AbstractOrderState{

    public InitOrderState(OrderDao orderDao, DateProvider dateProvider) {
        super(orderDao, dateProvider);
    }

    @Override
    public Integer getOrderStatus(OrderDTO order) {
        return OrderStatus.CREATE;
    }

}
